package com.entity;

import java.util.Objects;

public class Student {
    private String sno;
    private String name;
    private int high;

    public Student(String sno, String name, int high) {
        this.sno = sno;
        this.name = name;
        this.high = high;
    }

    public Student() {
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setHigh(int high) {
        this.high = high;
    }

    public String getSno() {
        return sno;
    }

    public String getName() {
        return name;
    }

    public int getHigh() {
        return high;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Student student = (Student) o;
        return high == student.high &&
                sno.equals(student.sno) &&
                name.equals(student.name);
    }


}
